package com.rui.study.algorithm;

import java.util.Random;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2019-01-03 15:45
 **/
public class RandomUtil {


    public static Random random = new Random(43);

    public static int nextInt(int start, int end) {
        return start + random.nextInt(end - start);
    }

    public static void main(String[] args) {
        for (int i = 0;i < 100; i++) {
            System.out.println(random.nextInt(10));
        }
    }
}
